import myaxios from "../MyAxios"
import BASEURL from '../BaseUrl' 
const JKTURL = BASEURL.JKTURL

const exerApi = {

  /**
   * 查询相关试题(科目)
   *  @param {Object} params { subjectstype:xx }
   */
  queryBySubj(params) {
    let url = JKTURL + '/exercises/subject'
    return myaxios.get(url, params)
  },

  queryById(params) {
    let url = JKTURL + '/exercises/ById'
    return myaxios.get(url, params)
  }

}

export default exerApi